import Http from '../http';

export const login = function (loginForm: any) {
    return Http.post('/login/userLogin', loginForm)
}

export const systemType = function (data: any) {
    return Http.post('/Checkmsg/SystemChange', data)
}

export const GetUnclaims = function (data: any) {
    return Http.postData('/Checkmsg/GetUnclaims', data)
}

export const DoClaim = function (data: any) {
    return Http.postData('/Checkmsg/DoClaim', data)
}

export const loginOut = function (data: any) {
    return Http.post('/login/loginOut',)
}

export const GetUsers = function (data: any) {
    return Http.postData('/Setting/GetUsers', data)
}

export const InsertorUpdateUser = function (data: any) {
    return Http.postData('/Setting/InsertorUpdateUser', data)
}

export const ObjectStatusCountSta = function (data: any) {
    return Http.postData('/Checkmsg/ObjectStatusCountSta', {}, data)
}

export const AddorUpdateDepartmentInfo = function (data: any) {
    return Http.postData('/Setting/AddorUpdateDepartmentInfo', data)
}

export const GetDepartmentInfo = function (data: any) {
    return Http.postData('/Setting/GetDepartmentInfo', data)
}

export const GetUserNameList = function (data: any) {
    return Http.postData('/Setting/GetUserNameList', data)
}

export const DelDepartmentInfo = function (data: any) {
    return Http.post('/Setting/DelDepartmentInfo', data)
}

export const DeleteUser = function (data: any) {
    return Http.post('/Setting/DeleteUser', data)
}

export const GetRoleInfos = function (data: any) {
    return Http.postData('/Setting/GetRoleInfos', data)
}

export const AddorUpdateRoleInfo = function (data: any) {
    return Http.postData('/Setting/AddorUpdateRoleInfo', data)
}

export const DeleteRoleInfo = function (data: any) {
    return Http.post('/Setting/DeleteRoleInfo', data)
}

export const GetAccessPages = function (data: any) {
    return Http.postData('/Setting/GetAccessPages', data)
}

export const GetProjectSta = function (data: any) {
    return Http.postData('/Checkmsg/GetProjectSta', data)
}

export const GetSubmitting = function (data: any) {
    return Http.postData('/Checkmsg/GetSubmitting', data)
}

export const GetCheckPending = function (data: any) {
    return Http.postData('/Checkmsg/GetCheckPending', data)
}

export const GetSignissue = function (data: any) {
    return Http.postData('/Checkmsg/GetSignissue', data)
}

export const GetFiledlist = function (data: any) {
    return Http.postData('/Checkmsg/GetFiledlist', data)
}

export const GetExamine = function (data: any) {
    return Http.postData('/Checkmsg/GetExamine', data)
}

export const GetDeviceInfos = function (data: any) {
    return Http.postData('/Setting/GetDeviceInfos', data)
}

export const GetPersonSta = function (data: any) {
    return Http.post('/Checkmsg/GetPersonSta', data)
}

export const DoCheckPending = function (data: any) {
    return Http.post('/Checkmsg/DoCheckPending', data)
}

export const DoExamine = function (data: any) {
    return Http.post('/Checkmsg/DoExamine', data)
}

export const DeleteDevice = function (data: any) {
    return Http.post('/Setting/DeleteDevice', data)
}

export const InsertorUpdateDevice = function (data: any) {
    return Http.postData('/Setting/InsertorUpdateDevice', data)
}

export const DoSignissue = function (data: any) {
    return Http.post('/Checkmsg/DoSignissue', data)
}

export const DoFile = function (data: any) {
    return Http.post('/Checkmsg/DoFile', data)
}

export const DelUnclaims = function (data: any) {
    return Http.post('/Checkmsg/DelUnclaims', data)
}

export const GetPersonStaReport = function (data?: any) {
    return Http.get('/Checkmsg/GetPersonStaReport', data)
}

export const RoleAssignment = function (data: any) {
    return Http.post('/Setting/RoleAssignment', data)
}

export const GetProjectStaReport = function (data?: any) {
    return Http.get('/Checkmsg/GetProjectStaReport', data)
}

export const permission = function () {
    return Http.get('/user/permission')
}

export const GetTestItemInfo = function (data?: any) {
    return Http.postData('/Setting/GetTestItemInfo', data)
}

export const DetectionObjectSearch = function (data: any) {
    return Http.postData('/Checkmsg/DetectionObjectSearch', data)
}

export const GetCheckProcess = function (data: any) {
    return Http.post('/Checkmsg/GetCheckProcess', data)
}

export const TestItemModify = function (data: any) {
    return Http.post('/Checkmsg/TestItemModify', data)
}

export const AddorUpdateTestItemInfo = function (data: any) {
    return Http.postData('/Setting/AddorUpdateTestItemInfo', data)
}

export const ModifyPassword = function (data: any) {
    return Http.post('/login/ModifyPassword', data)
}

export const SubmittingBack = function (data: any) {
    return Http.post('/Checkmsg/SubmittingBack', data)
}

// 待审核批量退回 
export const CheckPendingBack = function (data: any) {
    return Http.post('/Checkmsg/CheckPendingBack', data)
}

export const ExamineBack = function (data: any) {
    return Http.post('/Checkmsg/ExamineBack', data)
}

export const SignissueBack = function (data: any) {
    return Http.post('/Checkmsg/SignissueBack', data)
}